package com.tjmc.company.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tjmc.company.api.entity.CompanyReadRecordsEntity;
import com.tjmc.company.api.vo.CompanyReadRecordsVO;
import com.tjmc.company.mapper.CompanyReadRecordsMapper;
import com.tjmc.company.service.CompanyReadRecordsService;
import com.tjmc.recruit.common.core.util.R;
import com.tjmc.recruit.user.vo.ResumeInfoVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 企业浏览记录
 *
 * @author recruit
 * @date 2024-11-14 16:15:30
 */
@Service
@Slf4j
@RequiredArgsConstructor
public class CompanyReadRecordsServiceImpl extends ServiceImpl<CompanyReadRecordsMapper, CompanyReadRecordsEntity> implements CompanyReadRecordsService {

    @Override
    public IPage<CompanyReadRecordsVO> getCompanyReadRecords(Page page, Long accountId) {
        return baseMapper.getCompanyReadRecordsPage(page, accountId);
    }

    @Override
    public Page<ResumeInfoVO> selectPage(Page page, Long companyId) {
        return baseMapper.selectReadPage(page, companyId);
    }

}
